package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LuntaiEmployeeInfoMapper;
import com.ruoyi.system.domain.LuntaiEmployeeInfo;
import com.ruoyi.system.service.ILuntaiEmployeeInfoService;

/**
 * 员工信息，关联adminService业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class LuntaiEmployeeInfoServiceImpl implements ILuntaiEmployeeInfoService 
{
    @Autowired
    private LuntaiEmployeeInfoMapper luntaiEmployeeInfoMapper;

    /**
     * 查询员工信息，关联admin
     * 
     * @param id 员工信息，关联admin主键
     * @return 员工信息，关联admin
     */
    @Override
    public LuntaiEmployeeInfo selectLuntaiEmployeeInfoById(Integer id)
    {
        return luntaiEmployeeInfoMapper.selectLuntaiEmployeeInfoById(id);
    }

    /**
     * 查询员工信息，关联admin列表
     * 
     * @param luntaiEmployeeInfo 员工信息，关联admin
     * @return 员工信息，关联admin
     */
    @Override
    public List<LuntaiEmployeeInfo> selectLuntaiEmployeeInfoList(LuntaiEmployeeInfo luntaiEmployeeInfo)
    {
        return luntaiEmployeeInfoMapper.selectLuntaiEmployeeInfoList(luntaiEmployeeInfo);
    }

    /**
     * 新增员工信息，关联admin
     * 
     * @param luntaiEmployeeInfo 员工信息，关联admin
     * @return 结果
     */
    @Override
    public int insertLuntaiEmployeeInfo(LuntaiEmployeeInfo luntaiEmployeeInfo)
    {
        luntaiEmployeeInfo.setCreateTime(DateUtils.getNowDate());
        return luntaiEmployeeInfoMapper.insertLuntaiEmployeeInfo(luntaiEmployeeInfo);
    }

    /**
     * 修改员工信息，关联admin
     * 
     * @param luntaiEmployeeInfo 员工信息，关联admin
     * @return 结果
     */
    @Override
    public int updateLuntaiEmployeeInfo(LuntaiEmployeeInfo luntaiEmployeeInfo)
    {
        return luntaiEmployeeInfoMapper.updateLuntaiEmployeeInfo(luntaiEmployeeInfo);
    }

    /**
     * 批量删除员工信息，关联admin
     * 
     * @param ids 需要删除的员工信息，关联admin主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiEmployeeInfoByIds(Integer[] ids)
    {
        return luntaiEmployeeInfoMapper.deleteLuntaiEmployeeInfoByIds(ids);
    }

    /**
     * 删除员工信息，关联admin信息
     * 
     * @param id 员工信息，关联admin主键
     * @return 结果
     */
    @Override
    public int deleteLuntaiEmployeeInfoById(Integer id)
    {
        return luntaiEmployeeInfoMapper.deleteLuntaiEmployeeInfoById(id);
    }
}
